package com.baidu.foodrecipe.data.remote

import com.baidu.foodrecipe.data.model.FoodRecipe
import com.baidu.foodrecipe.data.model.Joke
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.QueryMap

interface ApiService {
    //获取食谱信息
    @GET("recipes/complexSearch")
    suspend fun getRecipes(@QueryMap params: Map<String, String>): Response<FoodRecipe>

    @GET("food/jokes/random")
    suspend fun getJokes(@Query("apiKey") apiKey: String): Response<Joke>
}